package com.ruoyi.hotel.mapper;

import com.ruoyi.hotel.domain.LyhmsRoom;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * Mapper接口
 * 
 * @author ruoyi
 * @date 2022-02-28
 */
public interface LyhmsRoomMapper 
{
    /**
     * 查询
     * 
     * @param id 主键
     * @return
     */
    public LyhmsRoom selectLyhmsRoomById(Long id);

    /**
     * 查询列表
     * 
     * @param lyhmsRoom
     * @return 集合
     */
    public List<LyhmsRoom> selectLyhmsRoomList(LyhmsRoom lyhmsRoom);

    /**
     * 新增
     * 
     * @param lyhmsRoom
     * @return 结果
     */
    public int insertLyhmsRoom(LyhmsRoom lyhmsRoom);

    /**
     * 修改
     * 
     * @param lyhmsRoom
     * @return 结果
     */
    public int updateLyhmsRoom(LyhmsRoom lyhmsRoom);

    /**
     * 删除
     * 
     * @param id 主键
     * @return 结果
     */
    public int deleteLyhmsRoomById(Long id);

    /**
     * 批量删除
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteLyhmsRoomByIds(Long[] ids);


    void updateByName(@Param("roomName") String roomName,@Param("state") int state);


    List<LyhmsRoom> ListName(String type);


    LyhmsRoom selectLyhmsRoomByName(String name);
}
